package com.forum.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.forum.annotation.Excel;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.apache.commons.beanutils.BeanUtils;
import org.apache.poi.ss.formula.functions.T;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.lang.reflect.InvocationTargetException;
import java.util.Date;

/**
 * @ClassNameSubjectCoursesTabEntity
 * 学科课程对象
 * @Author 张继成
 * @Date 2023/11/23 22:06
 */
@Data
@ApiModel( description = "学科课程对象")
@TableName("subjectcoursestab")
public class SubjectCoursesTabEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    public SubjectCoursesTabEntity() {

    }

    public SubjectCoursesTabEntity(T t) {
        try {
            BeanUtils.copyProperties(this, t);
        } catch (IllegalAccessException | InvocationTargetException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }
    /** 主键 */
    @TableId
    private Long id;

    /** 创建时间 */
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("Addtime")
    private Date addtime;

    /** 课程编号 */
    @Excel(name = "课程编号")
    @TableField("CoursesNo")
    private String kechengbianhao;

    /** 课程名 */
    @Excel(name = "课程名")
    @TableField("CoursesName")
    private String kechengmingcheng;

    /** 学科 */
    @Excel(name = "学科")
    @TableField("Subject")
    private String xueke;

    /** 图片 */
    @Excel(name = "图片")
    @TableField("Picture")
    private String tupian;

    /** 价格 */
    @Excel(name = "价格")
    @TableField("Pirce")
    private Long jiage;

    /** 课程详情信息 */
    @Excel(name = "课程详情信息")
    @TableField("CoursesInfo")
    private String kechengxiangqing;
}
